import request from '@/utils/request'

// 查询互市企业信息备案列表
export function listCorporationInfo(query) {
  return request({
    url: '/bt/corporationInfo/list',
    method: 'get',
    params: query
  })
}

// 查询互市企业信息备案详细
export function getCorporationInfo(id) {
  return request({
    url: '/bt/corporationInfo/getInfo/' + id,
    method: 'get'
  })
}

// 新增互市企业信息备案
export function addCorporationInfo(data) {
  return request({
    url: '/bt/corporationInfo/add',
    method: 'post',
    data: data
  })
}

// 修改互市企业信息备案
export function updateCorporationInfo(data) {
  return request({
    url: '/bt/corporationInfo/edit',
    method: 'post',
    data: data
  })
}

// 修改互市企业信息备案
export function declCorporationInfo(id) {
  return request({
    url: '/bt/corporationInfo/decl/' + id,
    method: 'get',
  })
}

// 修改互市企业信息备案
export function editDeclCorporationInfo(data) {
  return request({
    url: '/bt/corporationInfo/editDecl',
    method: 'post',
    data: data
  })
}

// 删除互市企业信息备案
export function delCorporationInfo(id) {
  return request({
    url: '/bt/corporationInfo/remove/' + id,
    method: 'get'
  })
}

// 导出互市企业信息备案
export function exportCorporationInfo(query) {
  return request({
    url: '/bt/corporationInfo/export',
    method: 'get',
    params: query
  })
}
